package com.xperia64.nxengineae;

import com.xperia64.nxengineae.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class StarterActivity extends Activity {
	public static StarterActivity mInstance = null;
	protected void onCreate(Bundle savedInstanceState)
	{
        super.onCreate(savedInstanceState);
        
        mInstance = this;
    
        setContentView(R.layout.main);

    	final Button begin = (Button) findViewById(R.id.button1);
        begin.setOnClickListener(new View.OnClickListener()
        {
            public void onClick(View v)
            {
            	Intent sdl = new Intent(begin.getContext(), SDLActivity.class);
                sdl.setFlags( Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP );
                startActivity( sdl );
                mInstance.finish();
            }
        });
	}
}
